package gphoto.bo;

public class Lieu implements Comparable<Lieu> {

	private int id;
	
	private String nom;
	
	public Lieu(int pId, String pNom) {
		id = pId;
		nom = pNom;
	}

	public Lieu(String pNom) {
		id = -1;
		nom = pNom;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int compareTo(Lieu l) {

		return nom.compareTo(l.getNom());
	}

	public String toString() {

		return "[LIEU : nom='"+nom+"' ]";
	}
}
